package com.abel.parser.controller;

import com.abel.parser.ContentType;
import com.abel.parser.service.ParserFactory;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 解析类入口
 *
 * @author heyangyang
 * @since 2024-04-26
 */
@RestController
@RequestMapping("/parser")
public class ParserController {

    @Resource
    private ParserFactory parserFactory;

    @GetMapping("/aaa")
    public String parser() {
        parserFactory.getParserService(ContentType.EXCEL).parser(null);
        return "parserType:" + null;
    }

    @GetMapping("/test")
    public String test() {
        return "test:";
    }

}
